{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 修改镜像源\n",
    "1. 先备份文件\n",
    "```\n",
    "sudo cp /etc/apt/sources.list /etc/apt/sources.list.bakcup\n",
    "```\n",
    "1. 编辑配置文件，写入源地址\n",
    "```\n",
    "deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  \n",
    "deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  \n",
    "deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  \n",
    "deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  \n",
    "deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  \n",
    "deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  \n",
    "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  \n",
    "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  \n",
    "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  \n",
    "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse   \n",
    "```\n",
    "1. 更新\n",
    "```\n",
    "sudo apt update\n",
    "```"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# vi基础\n",
    "1. 复制`yy`\n",
    "1. 插入`i`\n",
    "1. 粘贴`p`\n",
    "1. 撤销`u`,`U`\n",
    " "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 通过Xshell远程连接虚拟机中的Ubuntu\n",
    "1. server安装ssh服务\n",
    "```\n",
    "sudo apt-get install openssh-server\n",
    "```\n",
    "1. 在虚拟机和主机进行ping测试\n",
    "1. 配置xshell"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# git常用命令\n",
    "1. 提交所有分支\n",
    "```\n",
    " git push --all origin\n",
    "```\n",
    "1. 提交所有tag\n",
    "```\n",
    "git push origin --tags\n",
    "```\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [default]",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
